package com.dyh.quickdemozwei;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.junit.jupiter.api.Test;

import java.util.Date;

public class TestFinal {

    @Test
    public void test(){
        String str = "{\n" +
                "\t\"start\":\"2022-06-07 10:15:48\",\n" +
                "\t\"end\":\"2022-06-07 10:15:56\"\n" +
                "}";

        JSONObject jo = JSON.parseObject(str);

        System.out.println();

        Date now = new Date();
        Date start = new Date(now.getTime()-1000L*60*30);
        System.out.println();
    }

    static final long b;
    static final int a;
    static {
        a = 1;
        b = 2L;
    }

    interface Baa{
        void baa();
    }

    public static void  fun(Baa baa){

    }

    public static void main(String[] args) {
//        Baa baa = ()->{};
            fun(()->{});
    }
}
